//
//  DirectionViewController.h
//  Service4U
//
//  Created by Hai Nguyen on 10/5/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "S4UController.h"
#import <MapKit/MapKit.h>
#import <MapKit/MKAnnotation.h>
#import "UICGDirections.h"
#import "UICRouteOverlayMapView.h"
#import "MyLocationParser.h"

@interface DirectionViewController : S4UController <MKMapViewDelegate, UICGDirectionsDelegate, MyLocationParserDelegate, CLLocationManagerDelegate>{
	UIView *mapViewContent;
	MKMapView *routeMapView;
	UICRouteOverlayMapView *routeOverlayView;
	UICGDirections *diretions;
	NSString *startPoint;
	NSString *endPoint;
	NSArray *wayPoints;
	UICGTravelModes travelMode;
	MyLocationParser *myLocationParser;
	CLLocationManager *locationManager;
	CLLocation *currentLocation;
	NSTimer *updateTimer;
}

@property (nonatomic, retain) CLLocation *currentLocation;
@property (nonatomic, retain) NSString *startPoint;
@property (nonatomic, retain) NSString *endPoint;
@property (nonatomic, retain) NSArray *wayPoints;
@property (nonatomic) UICGTravelModes travelMode;

- (void)update;
- (void)updateMyLocation;

@end
